package com.albaba.designpattern.builder.text_001;

import com.albaba.designpattern.builder.text_001.builder.HelloBikeBuilder;
import com.albaba.designpattern.builder.text_001.builder.MobikeBuilder;
import com.albaba.designpattern.builder.text_001.director.Director;
import com.albaba.designpattern.builder.text_001.entity.Bike;

/**
 * @author zx
 * @version 1.0
 * @description 客户端
 * @date 2025/2/19 20:40
 */
public class Client {

    public static void main(String[] args) {

        // 创建指挥者
        Director director = new Director(new HelloBikeBuilder());

        Bike construct = director.construct();

        System.out.println(construct);

        director = new Director(new MobikeBuilder());

        construct = director.construct();

        System.out.println(construct);
    }

}
